package digui.test;

/**
 * @author cyt
 * @create 2020-05-29 15:07
 */

/***
 * 递归求阶乘
 * @author Administrator
 */
public class Ta {

    public static void main(String[] args) {
        System.out.println(jie(3));
    }

    public static int jie(int n) {
        if (n == 0) {
            return 1;
        } else {
            return n * jie(n - 1);
        }
    }
}
